package com.lantosec.hmrp.modules.archives.vo;

import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserOffice;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 任职信息表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserOffice对象", description="任职信息表")
public class UserOfficeVO extends BaseVO<UserOffice> {
    private static final long serialVersionUID = 1L;


    public UserOfficeVO(UserOffice entity){
        this.userOfficeId = entity.getUserOfficeId();
        this.userId = entity.getUserId();
        this.onboardingDate = entity.getOnboardingDate();
        this.qualifyDate = entity.getQualifyDate();
        this.endDate = entity.getEndDate();
        this.deptId = entity.getDeptId();
        this.deptName = entity.getDeptName();
        this.positionId = entity.getPositionId();
        this.positionName = entity.getPositionName();
        this.duty = entity.getDuty();
        this.dutyLevel = entity.getDutyLevel();
        this.personType = entity.getPersonType();
        this.chargeWork = entity.getChargeWork();
        this.remark = entity.getRemark();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserOffice convertToEntity(){
        return new UserOffice(this);
    }


    @ApiModelProperty(value = "主键ID，UUID")
    private String userOfficeId;

    @ApiModelProperty(value = "user主表ID")
    private String userId;

    @ApiModelProperty(value = "入职日期")
    private String onboardingDate;

    @ApiModelProperty(value = "转正日期")
    private String qualifyDate;

    @ApiModelProperty(value = "任职终止时间")
    private String endDate;

    @ApiModelProperty(value = "科室ID")
    private String deptId;

    @ApiModelProperty(value = "科室名称")
    private String deptName;

    @ApiModelProperty(value = "岗位ID")
    private String positionId;

    @ApiModelProperty(value = "岗位名称")
    private String positionName;

    @ApiModelProperty(value = "职务，字典值")
    private String duty;

    @ApiModelProperty(value = "职级，字典值")
    private String dutyLevel;

    @ApiModelProperty(value = "人员类别，字典值")
    private String personType;

    @ApiModelProperty(value = "分管工作")
    private String chargeWork;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "职务名称")
    private String dutyName;
    @ApiModelProperty(value = "职级名称")
    private String dutyLevelName;
    @ApiModelProperty(value = "人员类别")
    private String personTypeName;
    @ApiModelProperty(value = "审核状态")
    private Integer state;
}
